package com.yupi.yuojcodesandbox.sandbox.java;

import com.yupi.yuojcodesandbox.sandbox.AbstractDockerCodeSandbox;

/**
 * @Author: yuhao
 * @Date: 2025/3/13 19:26
 */
public class JavaDockerCodeSandbox extends AbstractDockerCodeSandbox {
    private static final String LANGUAGE_CMD = "docker exec -i  %s java -Dfile.encoding=UTF-8 -cp %s Main";

    public JavaDockerCodeSandbox() {
        super("openjdk:8", LANGUAGE_CMD, "/app");
    }
}
